package com.example.immanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.immanager.entity.Permission;
import com.example.immanager.entity.User;
import com.example.immanager.entity.domain.LoginDTO;
import com.example.immanager.entity.domain.UserRequest;

import java.util.List;

/**
 * @author Lukecheng
 * @date 2023/04/18
 */

public interface UserService extends IService<User> {

    LoginDTO login(UserRequest user);

    void logout(String uid);


    User saveUser(User user);

    List<Permission> getPermissions(String roleFlag);
}
